//
//  XJ_returnListCell.m
//  XunJieProject
//
//  Created by 薛子 on 2018/6/12.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_returnListCell.h"

@implementation XJ_returnListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setDataForCell:(XJ_ReturnListCellModel *)model{
    
    _timeLabel.text = model.planDetailDate;
    _backMoneyLabel.text = [NSString stringWithFormat:@"%@元",model.planBackMoney];
    if (model.planDetailStatus == 1) {
        
        _planStatusLabel.text = @"未消费";
    }else if (model.planDetailStatus == 2){
        
        _planStatusLabel.text = @"未还款";
        
    }else if (model.planDetailStatus == 3){
        
        _planStatusLabel.text = @"已消费";
        
    }else if (model.planDetailStatus == 4){
        
        _planStatusLabel.text = @"已还款";
    
    }
}
@end
